<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <link rel="stylesheet" href="./test.css" />
    <style>
      body {
        background-color: #ccc;
      }
      .zks {
        width: 1200px;
        margin: 0 auto;
        height: 100px;
        background-color: white;
      }
      ol li {
        list-style: none;
        display: inline-block;
      }
    </style>
  </head>
  <body>
    <button>下载pdf文件</button>
    <div class="zks"></div>
    <script>
      const btn = document.querySelector("button");
      const div = document.querySelector(".zks");
      btn.addEventListener("click", async function (e) {
        const res = await axios.get("http://localhost:3000");
        console.log(res.data.data);

        div.innerHTML = res.data.data.title;
      });
    </script>
  </body>
</html>
